<!DOCTYPE html>
<html lang="en">
  <head>
    <title>ButtonConfig Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Class/ButtonConfig" class="dashAnchor"></a>
    <a title="ButtonConfig Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">MobilePlayer Docs</a> (100% documented)</p>
        <p class="header-right"><a href="https://github.com/mobileplayer/mobileplayer-ios"><img src="../img/gh.png"/>View on GitHub</a></p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">MobilePlayer Reference</a>
        <img id="carat" src="../img/carat.png" />
        ButtonConfig Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/BarConfig.html">BarConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ButtonConfig.html">ButtonConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ElementConfig.html">ElementConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/LabelConfig.html">LabelConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MobilePlayerConfig.html">MobilePlayerConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MobilePlayerOverlayViewController.html">MobilePlayerOverlayViewController</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MobilePlayerViewController.html">MobilePlayerViewController</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/MobilePlayerViewController/State.html">– State</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SliderConfig.html">SliderConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ToggleButtonConfig.html">ToggleButtonConfig</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/WatermarkConfig.html">WatermarkConfig</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Global Variables.html">Global Variables</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:v12MobilePlayer41MobilePlayerDidEncounterErrorNotificationSS">MobilePlayerDidEncounterErrorNotification</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:v12MobilePlayer28MobilePlayerErrorUserInfoKeySS">MobilePlayerErrorUserInfoKey</a>
              </li>
              <li class="nav-group-task">
                <a href="../Global Variables.html#/s:v12MobilePlayer38MobilePlayerStateDidChangeNotificationSS">MobilePlayerStateDidChangeNotification</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Enums.html">Enums</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/ElementType.html">ElementType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/ElementWidthCalculation.html">ElementWidthCalculation</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/WatermarkPosition.html">WatermarkPosition</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>ButtonConfig</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">ButtonConfig</span><span class="p">:</span> <span class="kt"><a href="../Classes/ElementConfig.html">ElementConfig</a></span></code></pre>

                </div>
              </div>
            <p>Holds button configuration values.</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer12ButtonConfig6heightV12CoreGraphics7CGFloat"></a>
                    <a name="//apple_ref/swift/Property/height" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer12ButtonConfig6heightV12CoreGraphics7CGFloat">height</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Button height. Default value is 40.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">height</span><span class="p">:</span> <span class="kt">CGFloat</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer12ButtonConfig5imageGSqCSo7UIImage_"></a>
                    <a name="//apple_ref/swift/Property/image" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer12ButtonConfig5imageGSqCSo7UIImage_">image</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Button image.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">image</span><span class="p">:</span> <span class="kt">UIImage</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vC12MobilePlayer12ButtonConfig9tintColorCSo7UIColor"></a>
                    <a name="//apple_ref/swift/Property/tintColor" class="dashAnchor"></a>
                    <a class="token" href="#/s:vC12MobilePlayer12ButtonConfig9tintColorCSo7UIColor">tintColor</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Button tint color. Default value is white.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">tintColor</span><span class="p">:</span> <span class="kt">UIColor</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer12ButtonConfigcFT_S0_"></a>
                    <a name="//apple_ref/swift/Method/init()" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer12ButtonConfigcFT_S0_">init()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initializes using default values.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="n">convenience</span> <span class="nf">init</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FC12MobilePlayer12ButtonConfigcFT10dictionaryGVs10DictionarySSP___S0_"></a>
                    <a name="//apple_ref/swift/Method/init(dictionary:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:FC12MobilePlayer12ButtonConfigcFT10dictionaryGVs10DictionarySSP___S0_">init(dictionary:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initializes using a dictionary.</p>

<ul>
<li>Key for <code><a href="../Classes/ButtonConfig.html#/s:vC12MobilePlayer12ButtonConfig6heightV12CoreGraphics7CGFloat">height</a></code> is <code>&quot;height&quot;</code> and its value should be a number.</li>
<li>Key for <code><a href="../Classes/ButtonConfig.html#/s:vC12MobilePlayer12ButtonConfig5imageGSqCSo7UIImage_">image</a></code> is <code>&quot;image&quot;</code> and its value should be an image asset name.</li>
<li><p>Key for <code><a href="../Classes/ButtonConfig.html#/s:vC12MobilePlayer12ButtonConfig9tintColorCSo7UIColor">tintColor</a></code> is <code>&quot;tintColor&quot;</code> and its value should be a color hex string.</p></li>
<li><p>parameters:</p>

<ul>
<li>dictionary: Button configuration dictionary.</li>
</ul></li>
</ul>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="nf">init</span><span class="p">(</span><span class="nv">dictionary</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span> <span class="kt">Any</span><span class="p">])</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>dictionary</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Button configuration dictionary.</p>

                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2016 <a class="link" href="https://mobileplayer.io" target="_blank" rel="external">MobilePlayer</a>. All rights reserved. (Last updated: 2016-10-11)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
